package com.jiawa.wiki.service;

import com.jiawa.wiki.domain.Demo;
import com.jiawa.wiki.mapper.DemoMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: WeiZhen
 * @Date: 2021/6/21 13:45
 * @Description: TODO
 * @Version: 1.0
 **/
@Service
public class DemoService {

    @Resource //JDK自带的注解
//    @Autowired spring自带的注解
    private DemoMapper demoMapper;

    public List<Demo> list() {
        return demoMapper.selectByExample(null);
    }

}
